from util.redis import r
import time

def deletoken():
    nowrtime = int(time.time())-3600
    key = 'logoutlist'
    res=r.sortedset_getbyscore(key,0,nowrtime)
    for i in res:
        r.sortedset_delete(key,i.decode())



